name: pre-commit run_id: commands[0] env LANG: en_US.UTF-8 env HOME: /home/jenkins env PATH: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit/bin:/opt/pyenv/bin:/tmp/venv-9pEo/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/home/jenkins/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin env PYTHONHASHSEED: 548368180 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env TOX_ENV_NAME: pre-commit env TOX_WORK_DIR: /w/workspace/integration-test-tox-verify-master/.tox env TOX_ENV_DIR: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit env VIRTUAL_ENV: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit metadata pid: 7488 cwd: /w/workspace/integration-test-tox-verify-master allow: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit/bin/* cmd: pre-commit run --all-files --show-diff-on-failure exit_code: 1 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Initializing environment for https://github.com/PyCQA/flake8. [INFO] Initializing environment for https://github.com/psf/black. [INFO] Initializing environment for https://github.com/MarketSquare/robotframework-tidy. [INFO] Initializing environment for https://github.com/MarketSquare/robotframework-tidy:robotframework==6.1.1. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. [INFO] Initializing environment for local:rstcheck,sphinx. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/PyCQA/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/psf/black. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/MarketSquare/robotframework-tidy. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for local. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... trim trailing whitespace.................................................Passed flake8...................................................................Passed black....................................................................Failed - hook id: black - files were modified by this hook reformatted tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_crawler.py reformatted tools/odl-mdsal-clustering-tests/clustering-performance-test/odl_tester.py reformatted tools/odl-mdsal-clustering-tests/clustering-performance-test/shard_perf_test.py All done! ✨ 🍰 ✨ 3 files reformatted, 125 files left unchanged. robotidy.................................................................Passed rstcheck.................................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_crawler.py b/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_crawler.py index 724ee3a5..19beeea4 100755 --- a/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_crawler.py +++ b/tools/odl-mdsal-clustering-tests/clustering-performance-test/inventory_crawler.py @@ -23,7 +23,9 @@ class InventoryCrawler(object): table_stats_fails = [] def __init__(self, host, port, plevel, datastore, auth, debug): - content = "?content=nonconfig" if datastore == "nonconfig" else "?content=config" + content = ( + "?content=nonconfig" if datastore == "nonconfig" else "?content=config" + ) self.url = "http://" + host + ":" + port + "/" + self.INVENTORY_URL % content self.plevel = plevel self.auth = auth diff --git a/tools/odl-mdsal-clustering-tests/clustering-performance-test/odl_tester.py b/tools/odl-mdsal-clustering-tests/clustering-performance-test/odl_tester.py index 58e8dfa4..2d82440c 100644 --- a/tools/odl-mdsal-clustering-tests/clustering-performance-test/odl_tester.py +++ b/tools/odl-mdsal-clustering-tests/clustering-performance-test/odl_tester.py @@ -75,7 +75,14 @@ def _prepare_post(cntl, method, flows, template=None): flow["match"]["ipv4-destination"] = "%s/32" % str(netaddr.IPAddress(ip)) flow_list.append(flow) body = {"flow": flow_list} - url = "http://" + cntl + ":8181" + odl_node_url + dev_id + "/flow-node-inventory:table=0" + url = ( + "http://" + + cntl + + ":8181" + + odl_node_url + + dev_id + + "/flow-node-inventory:table=0" + ) req_data = json.dumps(body) req = requests.Request( method, diff --git a/tools/odl-mdsal-clustering-tests/clustering-performance-test/shard_perf_test.py b/tools/odl-mdsal-clustering-tests/clustering-performance-test/shard_perf_test.py index 6dc28550..01c60ffc 100755 --- a/tools/odl-mdsal-clustering-tests/clustering-performance-test/shard_perf_test.py +++ b/tools/odl-mdsal-clustering-tests/clustering-performance-test/shard_perf_test.py @@ -289,7 +289,9 @@ class InvUrlGenerator(TestUrlGenerator): def __init__(self, host, port, auth): TestUrlGenerator.__init__(self, host, port, auth) - self.resource_string = "rests/data/opendaylight-inventory:nodes?content=nonconfig" + self.resource_string = ( + "rests/data/opendaylight-inventory:nodes?content=nonconfig" + ) def url_generator(self, inv_data): url_list = []